package cn.com.open.itembank.dto;

import cn.com.open.itembank.common.BaseModel;

import java.util.ArrayList;
import java.util.List;

public class ChapterModel extends BaseModel {
    /**
     * 章节ID
     */
    public String chapterID;
    /**
     * 级别
     */
    public Integer level;
    /**
     * 名称
     */
    public String name;
    /**
     * 类型
     */
    public Integer type;
    /**
     * 父章节ID
     */
    public String parentID;
    /**
     * 排序
     */
    public Integer sort;
    /**
     * 子级
     */
    public List<ChapterModel> children;

    public ChapterModel(){
        this.children  = new ArrayList<>();

    }
    public String getChapterID() {
        return chapterID;
    }

    public void setChapterID(String chapterID) {
        this.chapterID = chapterID;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getParentID() {
        return parentID;
    }

    public void setParentID(String parentID) {
        this.parentID = parentID;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public List<ChapterModel> getChildren() {
        return children;
    }

    public void setChildren(List<ChapterModel> children) {
        this.children = children;
    }
}
